package yongxin.entity.purchaseSheet;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 采购申请单
 * @author zhangdaihao
 * @date 2015-04-09 13:14:52
 * @version V1.0   
 *
 */
@Entity
@Table(name = "t_purchase_sheet", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class PurchaseSheetEntity implements java.io.Serializable {
	/**id*/
	private java.lang.String id;
	/**申请单号*/
	private java.lang.String applyNumber;
	/**申请人*/
	private java.lang.String applicant;
	/**申请时间*/
	private java.util.Date applyDate;
	/**物料名称*/
	private java.lang.String materialName;
	/**规格型号*/
	private java.lang.String size;
	/**物料单位*/
	private java.lang.String materialUnit;
	/**申请数量*/
	private java.lang.String quantity;
	/**物料单价*/
	private java.lang.String unitPrice;
	/**申请总金额*/
	private java.lang.String totalMoney;
	/**供应商*/
	private java.lang.String suppliers;
	/**说明*/
	private java.lang.String note;
	/**申请部门*/
	private java.lang.String deptid;
	/**当前状态*/
	private java.lang.String fstate;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  id
	 */
	
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,precision=255,length=255)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  id
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  applyNumber
	 */
	@Column(name ="APPLY_NUMBER",nullable=true,precision=255,length=255)
	public java.lang.String getApplyNumber(){
		return this.applyNumber;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  applyNumber
	 */
	public void setApplyNumber(java.lang.String applyNumber){
		this.applyNumber = applyNumber;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  applicant
	 */
	@Column(name ="APPLICANT",nullable=true,precision=255,length=255)
	public java.lang.String getApplicant(){
		return this.applicant;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  applicant
	 */
	public void setApplicant(java.lang.String applicant){
		this.applicant = applicant;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  applyDate
	 */
	@Column(name ="APPLY_DATE",nullable=true,precision=10,scale=0,length=3)
	public java.util.Date getApplyDate(){
		return this.applyDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  applyDate
	 */
	public void setApplyDate(java.util.Date applyDate){
		this.applyDate = applyDate;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  materialName
	 */
	@Column(name ="MATERIAL_NAME",nullable=true,precision=255,length=255)
	public java.lang.String getMaterialName(){
		return this.materialName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  materialName
	 */
	public void setMaterialName(java.lang.String materialName){
		this.materialName = materialName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  size
	 */
	@Column(name ="SIZE",nullable=true,precision=255,length=255)
	public java.lang.String getSize(){
		return this.size;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  size
	 */
	public void setSize(java.lang.String size){
		this.size = size;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  materialUnit
	 */
	@Column(name ="MATERIAL_UNIT",nullable=true,precision=255,length=255)
	public java.lang.String getMaterialUnit(){
		return this.materialUnit;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  materialUnit
	 */
	public void setMaterialUnit(java.lang.String materialUnit){
		this.materialUnit = materialUnit;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  quantity
	 */
	@Column(name ="QUANTITY",nullable=true,precision=255,length=255)
	public java.lang.String getQuantity(){
		return this.quantity;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  quantity
	 */
	public void setQuantity(java.lang.String quantity){
		this.quantity = quantity;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  unitPrice
	 */
	@Column(name ="UNIT_PRICE",nullable=true,precision=255,length=255)
	public java.lang.String getUnitPrice(){
		return this.unitPrice;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  unitPrice
	 */
	public void setUnitPrice(java.lang.String unitPrice){
		this.unitPrice = unitPrice;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  totalMoney
	 */
	@Column(name ="TOTAL_MONEY",nullable=true,precision=255,length=255)
	public java.lang.String getTotalMoney(){
		return this.totalMoney;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  totalMoney
	 */
	public void setTotalMoney(java.lang.String totalMoney){
		this.totalMoney = totalMoney;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  suppliers
	 */
	@Column(name ="SUPPLIERS",nullable=true,precision=255,length=255)
	public java.lang.String getSuppliers(){
		return this.suppliers;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  suppliers
	 */
	public void setSuppliers(java.lang.String suppliers){
		this.suppliers = suppliers;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  note
	 */
	@Column(name ="NOTE",nullable=true,precision=-1,length=-1)
	public java.lang.String getNote(){
		return this.note;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  note
	 */
	public void setNote(java.lang.String note){
		this.note = note;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  deptid
	 */
	@Column(name ="DEPTID",nullable=true,precision=255,length=255)
	public java.lang.String getDeptid(){
		return this.deptid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  deptid
	 */
	public void setDeptid(java.lang.String deptid){
		this.deptid = deptid;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  state
	 */
	@Column(name ="FSTATE",nullable=true,precision=255,length=255)
	public java.lang.String getFstate(){
		return this.fstate;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  state
	 */
	public void setFstate(java.lang.String fstate){
		this.fstate = fstate;
	}
}
